<%@ Register TagPrefix="skm" Namespace="FAQControls" Assembly="FAQControls" %>
<%@ Page language="c#" Codebehind="MaintainFAQs.aspx.cs" AutoEventWireup="True" Inherits="Adge.Web.Faq.Admin.MaintainFAQs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Maintain FAQs</title>
		<LINK href="../FAQstyle.css" type="text/css" rel="stylesheet">
	</HEAD>
	<body MS_POSITIONING="FlowLayout">
		<form id="Form1" method="post" runat="server">
			<p>
				<skm:LoginPanel id="LoginPanel1" runat="server" cssclass="faq_logout"></skm:LoginPanel></p>
			<h1>FAQ Maintenance</h1>
			<div class="faq_breadcrumb"><a href="Default.aspx">skmFAQs.NET Administration</a> &gt; 
				FAQ Maintenance</div>
			<P>
				<b>Select a category:</b>
				<asp:DropDownList Runat="server" ID="category" AutoPostBack="True" DataTextField="Name" DataValueField="CategoryID" onselectedindexchanged="category_SelectedIndexChanged"></asp:DropDownList></B></P>
			<P><B>
					<asp:DataGrid id="dgFAQs" runat="server" BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px"
						BackColor="White" CellPadding="4" AutoGenerateColumns="False" DataKeyField="FAQID">
						<SelectedItemStyle Font-Bold="True" ForeColor="#663399" BackColor="#FFCC66"></SelectedItemStyle>
						<ItemStyle ForeColor="#330099" BackColor="White"></ItemStyle>
						<HeaderStyle Font-Bold="True" ForeColor="#FFFFCC" BackColor="#990000"></HeaderStyle>
						<FooterStyle ForeColor="#330099" BackColor="#FFFFCC"></FooterStyle>
						<Columns>
							<asp:HyperLinkColumn Text="Edit" DataNavigateUrlField="FAQID" DataNavigateUrlFormatString="EditFAQ.aspx?ID={0}&amp;from=MaintainFAQs.aspx"></asp:HyperLinkColumn>
							<asp:HyperLinkColumn Text="Related FAQs" DataNavigateUrlField="FAQID" DataNavigateUrlFormatString="RelatedFAQs.aspx?ID={0}&amp;from=MaintainFAQs.aspx"></asp:HyperLinkColumn>
							<asp:ButtonColumn Text="Delete" CommandName="Delete"></asp:ButtonColumn>
							<asp:TemplateColumn>
								<ItemTemplate>
									<asp:ImageButton ID="btnMoveUp" Runat="server" CommandName="MoveUp" ImageUrl="~/Images/up.gif"></asp:ImageButton>
									<asp:ImageButton Runat="server" CommandName="MoveDown" ImageUrl="~/Images/down.gif" ID="btnMoveDown"></asp:ImageButton>
								</ItemTemplate>
							</asp:TemplateColumn>
							<asp:BoundColumn DataField="Question" HeaderText="Question"></asp:BoundColumn>
							<asp:BoundColumn DataField="DateCreated" HeaderText="Date Created" DataFormatString="{0:d}"></asp:BoundColumn>
						</Columns>
						<PagerStyle HorizontalAlign="Right" ForeColor="#330099" BackColor="#FFFFCC" Mode="NumericPages"></PagerStyle>
					</asp:DataGrid></B></P>
			<P>
				<asp:Label id="noFAQsMessage" Font-Italic="True" runat="server">There are no approved FAQs for the selected category.</asp:Label></P>
		</form>
	</body>
</HTML>
